home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
UTIL
/
SYS
/
PIPE
/
pipe_help
< prev
Wrap
Text File
|
1992-02-28
|
3KB
|
92 lines
PipeHelp
Help file for Pipe 2.0
Pipe works now correctly if stdout is redirected.
Pipe knows about the CLI commands, it redirects the
output of CLI commands right.
Pipe is now able to remove workfiles left by an earlier
call of pipe which failed.
Usage:
pipe command1 | command2 | ... commandn
where command is either a program which can be called
with run or a CLI-command. If it is a CLI-command it
MUST begin with a *.
As CLI-commands do not accept any input (most of them)
a CLI-command works only right as the first or the last
command.
Examples:
grep pattern file -- this searches "pattern" in file
and prints matches
pipe *modules | grep mouse -- find all modules with
mouse in their name.
pipe *fontcat | grep helvetica -- find all available
helvetica fonts
The only command at the end which makes sence to me is
*count.
pipe grep test InFile | *count -- counts the chars belonging
to lines of InFile having
the pattern test on them.
Well, I do not know if this is realy usefull!
I will explaine how it workes, so you may find usefull operations.
A command not at the front and not at hte end of the sequence
looks like this when it is executed:
command Argumentlist < pipe_in > pipe_out
pipe_in is the output of the last command.
pipe_out is the name of the new outputfile.
If command returns with siuccess pipe_in is removed and
pipe_out is renamed to pipe_in.
If command is a CLI-command (recognized by the leading *)
it looks like this:
*command Argumentlist pipe_in { > pipe_out }
pipe_in is added to the Argumentlist an the output is redirected
in braces.
This makes only sence on very few commands :-(
==================================================================
What I probably will do for further implementations is this:
If there is a *command in the middle or at the end of
a commandsequence I call this command for each line of
output produced by the earlier command.
EG.
pipe cat | grep list | copy %s ^.%s
copy all files in the CSD which have a "list" in their name one
directory up.
pipe *modules | grep Mem | rmkill %s
rmkill all modules with "mem" in their name.
==================================================================
CAT concatenates its argumentfiles to stdout.
So cat > afile reads from stdin and writes to stdout.
cat aFile types aFile to stdout.
cat file1 file2 file3 > outfile concats file one to three to outfile.
==================================================================
angelo@ira.uka.de Angelo Schneider
angelo schneider@ka.maus.de Edelsheimstr. 1
7500 Karlsruhe 1
voice: 0721/607840